import request from "../utils/request";
import type {CategoryAData} from '../types/category'

export const getCategories =()=> {
    return request<CategoryAData[]>({
      url: 'category/list',
      method:'GET'
    })
  }